package com.wp.www.service;

import com.wp.www.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cloudalibaba-seata-storage")
public interface StorageService {
    @GetMapping("/storage/{commodityCode}/{count}")
    public CommonResult reduceStorage(@PathVariable("commodityCode") String commodityCode, @PathVariable("count") Integer count);
}
